//
//  aa_bbPlatform_aa_bb.h
//  kratos_framework_Example
//
//  Created by 7yao.top on 2018/10/22.
//  Copyright © 2018年 kratos_framework. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN
@class Kratos_Options;

@protocol Kratos_PlatformDelegate;
@protocol  Kratos_PlatformDelegate<NSObject>
- (void)kratos_getUserInfo:(NSDictionary *)Kratos_userinfo;
- (void)kratos_logoutFromSDK;
- (void)kratos_SDKInitSuccessed:(NSDictionary *)Kratos_info;

@end



@interface Kratos_Platform : NSObject

@property (nonatomic,weak) UIViewController *weak_viewController;
@property (nonatomic,weak) id<Kratos_PlatformDelegate> delegate;


+ (nullable instancetype)sharedPlatform;


- (void)Kratos_logoutFromGame;
//show 登录视图
- (void)Kratos_ShowAccountViewController:(UIViewController *)viewController Kratos_delegate:(id <Kratos_PlatformDelegate>)delegate Kratos_options:(Kratos_Options*)option;
//显示登录视图
- (void)Kratos_showloginView;
//隐藏登录视图
- (void)Kratos_hideLoginView;

/// 回调并返回值
- (void)Kratos_callbackAndReturnValue_Kratos:(NSString *)url  Kratos_key:(NSString *)key;
- (void)Kratos_FuWithUID_Kra:(NSString *)Kratos_uid
                       Kratos_price:(NSString *)Kratos_price
                       Kratos_goods:(NSString *)Kratos_goods
                         Kratos_sid:(NSString *)Kratos_sid
                      Kratos_attach:(NSString *)Kratos_Attach
                 Kratos_appleMeiShu:(NSString *)Kratos_appleMeiShu;


@end
NS_ASSUME_NONNULL_END

